<?php 
class ManageBadContent extends Module
{
	function ManageBadContent($row)
	{echo 'a';
		Module::Module($row);
		if(User::is_admin()){			
			CGlobal::$website_title = 'Quản lý thông báo nội dung xấu';
			
			switch(Url::get('cmd')){				
				case 'delete':											
					DB::query('DELETE FROM bad_content WHERE id="'.Url::get('id').'"');
					Url::redirect_url(Url::build_all(array('chk_id','del_all','cmd','id')));
					break;
				default:
					require_once 'forms/ManageBadContent.php';
					$this->add_form(new ManageBadContentForm());
					break;
			}
		}
		else
		{
			Url::access_denied();
		}
	}
}
?>